{extends file="../acp.html"}

{block name="title"}{$head_title}{/block}
{block name="content"}
<form id="J_FormArticle" action="" method="post">
<div class="formitems inline">  
    <label class="fi-name"><span class="colorRed">*</span>标题：</label>  
    <div class="form-controls">  
        <input type="text" placeholder="" class="xlarge" name="title" id="title">  
		<span class="fi-help-text hide"></span>
    </div>  
</div> 
<div class="formitems inline">  
    <label class="fi-name"><span class="colorRed">*</span>所属栏目：</label>  
    <div class="form-controls">  
        <select name="sort_id" id="sort_id">  
            <option value="">--请选择--</option>
			{html_options options=$article_category_options selected=$sort_id}
        </select>   
		<span class="fi-help-text hide"></span>
    </div>  
</div> 
<div class="formitems inline">  
    <label class="fi-name">作者：</label>  
    <div class="form-controls">  
        <input type="text" placeholder="" name="author" id="author"> 
    </div>  
</div> 
<div class="formitems inline">  
    <label class="fi-name">来源：</label>  
    <div class="form-controls">  
        <input type="text" placeholder="" name="article_source" id="article_source"> 
    </div>  
</div> 
<div class="formitems inline">  
    <label class="fi-name">排序：</label>  
    <div class="form-controls">  
        <input type="text" placeholder="" style="width:45px;" name="serial" id="serial"> 
    </div>  
</div>
<div class="formitems inline">  
    <label class="fi-name">显示：</label>  
    <div class="form-controls">  
        <div class="radio-group">  
            <label><input type="radio" name="isuse" value="1" checked="checked" />是</label>  
            <label><input type="radio" name="isuse" value="0" />否</label>   
        </div>  
    </div>  
</div> 
<div class="formitems inline">
	<label class="fi-name">缩略图：</label>
	<div class="form-controls">
		<ul class="fi-imgslist">
			<li class="fi-imgslist-item pic hide">
				<div class="pic-wrap">
					<img id="J_Preview" class="pic-preview" />
				</div>
				<input type="hidden" name="img_url" data-id="" id="J_ImgUrl" />
				<a href="javascript:;" class="del" id="J_Del" title="删除这张图"><i class="gicon-remove"></i></a>
				<img src="__IMAGES__/popup-loading.gif" id="J_AjaxLoading" class="pic-loading" style="width: 32px; height: 32px;" />
				<div class="pic-mask" id="J_Mask"></div>
			</li>
			<li class="fi-imgslist-item">
				<a href="javascript:;" class="add" title="上传一张新的图片" id="J_Uploader">+</a>
			</li>
		</ul>
		<span class="fi-help-text">文章列表的缩略图，暂时只支持上传单张2M以内JPEG,PNG,GIF格式图片</span>
	</div>
</div>
<div class="formitems inline">  
    <label class="fi-name">页面关键字：</label>  
    <div class="form-controls">  
        <input type="text" placeholder="" class="xlarge" name="keywords" id="keywords"> 
        <span style="color:#ddd;">多个用"|"分隔</span>
    </div>  
</div> 
<div class="formitems inline">  
    <label class="fi-name">页面描述：</label>  
    <div class="form-controls">  
        <textarea name="description" id="description"></textarea>   
    </div>  
</div> 
<div class="formitems inline">  
    <label class="fi-name">文章内容：</label>  
    <div class="form-controls" id="J_KindEditor">  
        <textarea name="contents" id="contents" class="large"></textarea>
    </div>  
</div> 
<div class="formitems inline">  
    <label class="fi-name"></label>  
    <div class="form-controls">  
		<input type="hidden" name="act" value="submit" />
        <button type="submit" class="btn btn-blue"><i class="gicon-check white"></i>保存</button>  
    </div>  
</div> 
</form>
{/block} 

{block name="js"}
<!-- 编辑器 -->
<link rel="stylesheet" href="__KD__/themes/default/default.css" />
<script charset="utf-8" src="__KD__/kindeditor.js?version={$version}" > </script>
<script charset="utf-8" src="__KD__/lang/zh_CN.js?version={$version}" > </script>
<script type="text/javascript" src="__JS__/jquery/ajaxupload.3.5.js?version={$version}"></script>
<script type="text/javascript" src="__ACPJS__/AcpArticle/article_save.js?version={$version}"></script>
{/block} 

{block name="css"}
<link rel="stylesheet" href="/Public/Css/acp/AcpArticle/add_article.css"  type="text/css"/>
{/block}
